package com.zxy.dao;

import cn.echo.annotation.PageX;
import com.zxy.model.Permissions;
import com.zxy.model.PermissionsQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PermissionsDao {
    int delete(Integer id);

    int insert(Permissions record);

    @PageX
    List<Permissions> select(PermissionsQuery query);

    int update(Permissions record);

    List<Permissions> selectPermissionsByRoleId(Integer id);

    List<Permissions> selectPermissionsByUserId(Integer id);
}
